<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>样式的优先级</title>
<style>
	ul #listLi .listDiv .listP{ color : red; }
	#list .listLi div p{ color : green; }
</style>
</head>
<body>
<ul id="list" class="list">
	<li id="listLi" class="listLi">
 		<div id="listDiv" class="listDiv">
			<p id="listP" class="listP">这是一个段落</p>
 		</div>
 	</li>
</ul>
</body>
</html>




